<template>
    <div>
        <div class="content item-content">
            <div class="content-box item-content-box">
                <div class="content-item">
                    <div class="content-item-box">
                        <div class="post-title">
                            <a href="/index.php/main/forum/items" target="_blank">{{ item.title }}</a>
                        </div>
                        <div class="post-info">
                            <strong class="post-user">linkphp</strong>
                            <em class="post-time">2017-09-17</em>
                            <span class="post-tags"><a href="#" class="tags-info">mvc</a></span>
                            <span class="post-num"><i class="layui-icon">&#xe611;</i> 0</span>
                        </div>
                    </div>
                    <div class="content-item-box-dec">
                        <p>{{ item.content }}</p>
                        <strong class="post-last-time">最后一次编辑于: 2017-09-17</strong>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
import request from '../link/request.js'
export default {
  name: 'DownItem',
  data () {
    return {
      item: {}
    }
  },
  mounted () {
    this.getThisData()
  },
  methods: {
    getThisData () {
      let that = this
      request.post('/index.php/main/download/getItem', {
        id: this.$route.params.id
      })
        .then(function (response) {
          console.log(response)
          that.item = response
        })
    },
    toggle: function () {
    }
  }
}
</script>

<style scoped>
    @import "../assets/css/downItem.css";
</style>
